﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
 
<%@ Import Namespace="Webdiyer.WebControls.Mvc" %>
<%@ Import Namespace="Runda.CMS.Order.Entity" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	订单列表
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<link rel="stylesheet" href="../../Content/css/order/list.css" />
 <link href="../../Content/css/order/pages.css" rel="stylesheet" type="text/css" /> 
 <link href="../../Scripts/dateChooser/dateChooser.css" rel="stylesheet" />
<script type="text/javascript"  src="../../Scripts/dateChooser/dateChooser.js"></script>
<div class="wrapper">
	<div class="content">		 
	    <form id="form1" action="/Order/List" method="post">
		    <ul class="mngContent">
			    <li class="mgnCn first">
				    <ul class="inquiryInfo clearfix">
					    <li>品名：<input class="inventoryName" type="text" name="inventoryName" value="<%=ViewData["inventoryName"] %>" /></li>					  		 		    
		 		    <li class="dateChosen clearfix dateParent">
							<span>配货日期:</span>
							<span class="calendarSelectDate">
								<div class="dateDiv">
									<a class="rcvDate" href="javascript:;"></a>
									<input class="input eng" type="text" value="<%=ViewData["dateFrom"] %>" name="dateFrom"  />
								</div>
							</span>
							<span>至</span>
							<span class="calendarSelectDate">
								<div class="dateDiv">
									<a class="rcvDate" href="javascript:;"></a>
									<input class="input eng" type="text" value="<%=ViewData["dateTo"] %>" name="dateTo" />
								</div>
							</span>
					 
						</li>
						
                      <li class="last"><input class="hand inqSubit" type="submit" value="" /></li>
                      </ul>
		 		    <div class="bookingTab">
					    <table class="eng" cellpadding="0" cellspacing="0">
						    <colgroup valign="middle">
							    <col width="90px" />
							    <col width="90px" />
							    <col width="100px" />
							    <col width="80px" />
							    <col width="80px" />							   
							    <col width="100px" />
							    <col width="80px" />
							    <col width="130px" />
							    <col width="100px" />
							    <col width="100px" />
							    <col width="70px" />
						    </colgroup>
						    <thead>
							    <th>发货单号</th>
							    <th>订单号</th>
							    <th>下订日期</th>
							    <th>发货数量</th>
							    <th>状态</th>
							    <th>发货时间</th>
							    <th>快递公司</th>
							    <th>快递号</th>
							    <th>预计到达</th>
							    <th>签收时间</th>
							    <th>签收人</th>
						    </thead>
						    <tbody>
						     <%foreach (OrderInfo item in (PagedList<OrderInfo>)ViewData["list"])
             {%>
							        <tr>
								        <td><a target="_blank" href='/ShippingRequest/Info/<%=item.cVouchId%>'><%=item.cVouchId%></a></td>
								        <td><a target="_blank" href='/Order/Info/<%=item.billNo%>'><%=item.billNo%></a></td>
								        <td><%=item.orderDate %></td>
								        <td><%=item.sendQuantity %></td>				
								        <td><%=item.Status %></td>		
								        <td><%=item.sendDate %></td>
								        <td><%=item.deliveryCompany %></td>	
								        <td><%=item.deliveryNum %></td>	
								        <td><%=item.preReceiveDate %></td>	
								        <td><%=item.receiveDate %></td>		
								        <td><%=item.receivedMan %></td>								 			 
							        </tr>		
							    <%}%>				 
						    </tbody>
					    </table>
		 		    </div>	
		 		   <div class="pager" style="width:100%;text-align:right;">
        <div class="pager" align="left" style="float: left; width: 40%;">
            <%="共" + ((Webdiyer.WebControls.Mvc.PagedList<OrderInfo>)ViewData["list"]).TotalPageCount + "页" + ((Webdiyer.WebControls.Mvc.PagedList<OrderInfo>)ViewData["list"]).TotalItemCount + "条"%></div>
        <div align="right" class="pager" style="width: 60%; float: left;">
            <%=Html.Pager<OrderInfo>((Webdiyer.WebControls.Mvc.PagedList<OrderInfo>)ViewData["list"], new PagerOptions() { PageIndexParameterName = "id", CurrentPagerItemWrapperFormatString = "<span class=\"cpb\">{0}</span>", NumericPagerItemWrapperFormatString = "<span class=\"item\">{0}</span>", CssClass = "pages", SeparatorHtml = "", IsPost = true })%></div>
    </div>
			    </li>			 
		    </ul>
	    </form>
	</div>
</div>	
</asp:Content>
